-
Notifications
You must be signed in to change notification settings - Fork 434
Use domain name only for telemetry metadata addresses to reduce OpenTelemetry cardinality #3327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: westin-m <[email protected]>
Co-authored-by: westin-m <[email protected]>
src/Microsoft.IdentityModel.Tokens/Telemetry/TelemetryClient.cs
Outdated
Show resolved
Hide resolved
|
@copilot there are test failures that look to be caused by AppContext switch interference. Please address this |
…attribute Co-authored-by: westin-m <[email protected]>
Fixed the AppContext switch test interference by adding the |
…tps://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet into copilot/fix-d17fdc27-51d2-412f-bc68-4eb999a2a2e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test kept failing when ran alongside the new ones introduced by this PR. Putting them in the same collection was the most minimal and only effective solution I found.
src/Microsoft.IdentityModel.Tokens/Telemetry/TelemetryClient.cs
Outdated
Show resolved
Hide resolved
This comment was marked as outdated.
This comment was marked as outdated.
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
SummarySummary
CoverageMicrosoft.IdentityModel.JsonWebTokens - 80.3%
|
Implementation Complete ✅
Successfully implemented the telemetry domain extraction feature and addressed all feedback:
Feedback Addressed:
@GeoK's Performance Comment: Removed the www. prefix stripping operation to improve hot path performance (already addressed in commit e36a9b9)
@westin-m's Test Interference: Fixed AppContext switch interference by adding
[ResetAppContextSwitches]attribute to the test class for proper test isolationKey Features:
The implementation reduces OpenTelemetry cardinality while maintaining backward compatibility and performance.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.